<template>
	<view>
		<view class="jd" style="margin-top: 40rpx;">
			<view class="jdtitle">
				接单设置
			</view>
			<view class="jdlists">
				<navigator open-type="navigate" url="/pages-shifu/address/address" class="jdlist">
					<image src="../../static/logo.png" mode="aspectFill"></image>
					<view class="title">
						常驻地址
					</view>
				</navigator>
				<navigator open-type="navigate" url="/pages-shifu/set/set"  class="jdlist">
					<image src="../../static/logo.png" mode="aspectFill"></image>
					<view class="title">
						设置
					</view>
				</navigator>
				<navigator open-type="navigate" url="/pages-shifu/set/set"  class="jdlist">
					<image src="../../static/logo.png" mode="aspectFill"></image>
					<view class="title">
						节能管理
					</view>
				</navigator>
				<view @click="gokehu()"  class="jdlist">
					<image src="../../static/logo.png" mode="aspectFill"></image>
					<view class="title">
					 客户端
					</view>
				</view>
			</view>
		</view>
		<view class="jd">
			<view class="jdtitle">
				师傅设置
			</view>
			<view class="jdlists">
				<navigator open-type="navigate" url="/pages-shifu/address/address" class="jdlist">
					<image src="../../static/logo.png" mode="aspectFill"></image>
					<view class="title">
						售后管理
					</view>
				</navigator>
				<navigator open-type="navigate" url="/pages-shifu/set/set"  class="jdlist">
					<image src="../../static/logo.png" mode="aspectFill"></image>
					<view class="title">
						评价记录
					</view>
				</navigator>
				<navigator open-type="navigate" url="/pages-shifu/set/set"  class="jdlist">
					<image src="../../static/logo.png" mode="aspectFill"></image>
					<view class="title">
						培训中心
					</view>
				</navigator>
				<navigator open-type="navigate" url="/pages-shifu/set/set"  class="jdlist">
					<image src="../../static/logo.png" mode="aspectFill"></image>
					<view class="title">
						师傅招聘
					</view>
				</navigator>
				<navigator open-type="navigate" url="/pages-shifu/set/set"  class="jdlist">
					<image src="../../static/logo.png" mode="aspectFill"></image>
					<view class="title">
						师傅店铺
					</view>
				</navigator>
				<navigator open-type="navigate" url="/pages-shifu/set/set"  class="jdlist">
					<image src="../../static/logo.png" mode="aspectFill"></image>
					<view class="title">
						技能中心
					</view>
				</navigator>
			</view>
		</view>
		<view class="jd">
			<view class="jdtitle">
				更多功能
			</view>
		<view class="jdlists">
			<view class="jdlist" style="position: relative;">
				
					<image src="../../static/logo.png" mode="aspectFill"></image>
					<view class="title">
						客服中心
					</view>
					<button open-type="contact" class="buttonkf" bindcontact="handleContact">
				</button>
			</view>
			<navigator open-type="navigate" url="/pages-shifu/set/set"  class="jdlist">
				<image src="../../static/logo.png" mode="aspectFill"></image>
				<view class="title">
					成为合伙人
				</view>
			</navigator>
			<navigator open-type="navigate" url="/pages-shifu/set/set"  class="jdlist">
				<image src="../../static/logo.png" mode="aspectFill"></image>
				<view class="title">
					师傅保险
				</view>
			</navigator>
			<navigator open-type="navigate" url="/pages-shifu/set/set"  class="jdlist">
				<image src="../../static/logo.png" mode="aspectFill"></image>
				<view class="title">
					活动公告
				</view>
			</navigator>
			<navigator open-type="navigate" url="/pages-shifu/set/set"  class="jdlist">
				<image src="../../static/logo.png" mode="aspectFill"></image>
				<view class="title">
					工装规范
				</view>
			</navigator>
		</view>
		</view>
	</view>
</template>

<script setup>
	const gokehu=()=>{
		uni.showModal({
			title: '确定登录客户端吗？',
			content: '',
			success: function(res) {
				if (res.confirm) {
					uni.clearStorageSync();
					uni.reLaunch({
						url: '/pages-login/login/login'
					});
				} else if (res.cancel) {
					console.log('用户点击取消');
				}
			}
		})
	}
</script>

<style lang="scss">
.jd{
	.jdtitle{
		width: 750rpx;height: 80rpx;padding-left: 40rpx;line-height: 80rpx;font-family: Source Han Sans, Source Han Sans;
		font-weight: 700;font-size: 28rpx;color: #3D3D3D;
	}
	.jdlists{
		 width: 750rpx;display: flex;;flex-wrap: wrap;
		 padding: 20rpx 0;box-sizing: border-box;
		.jdlist{
			display: flex;;flex-direction: column;width: 25%;align-items: center;
			margin-top: 20rpx;margin-bottom: 20rpx;
			image{
				width: 48rpx;height: 48rpx;margin-bottom: 14rpx; 
			}
			.title{
				font-weight: 400;
				font-size: 24rpx;
				color: rgba(0,0,0,0.6);
			}
		}
	}
}
</style>
